<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="kulstats.*" %>

<%@ include file="checkLogin.inc.jsp" %>

<%
// wa roemel

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html> 
<head> 
	<title>Home - StAPP</title> 
	
	<%@ include file="mobileResources.inc.jsp" %>
</head> 

<body>
<div data-role="page" id="homePage">
	<div data-role="header">
		<% WebCache.headerElement = "home"; %>
		<%@ include file="mobileHeader.inc.jsp" %>
	</div><!-- /header -->
	<div data-role="content">
	
		<div id="welcomeText">	
		<p>Welcome to you StAPP homepage. Welcome: <%=(currentUser!=null ? currentUser.getName() : "") %> 
		
		<div id="pointDiv" style="text-align: center;">
			<div id="pointText">
			<center><p>Your Current Points : <%=currentUser.getPoints() %></p></center>
			</div>
				<div id="pointMeter">
				<center><img src="https://chart.googleapis.com/chart?chs=214x125&amp&chma=0,0,0,0&cht=gom&amp&chf=bg,s,00000000&amp&chd=t:
					<%=calculatePoints.calculateGraphPercentage()%>&amp&chls=2,1,5|10&chco=00BFFF,1E90FF,0000FF&amp&
							chxt=x,y&amp&chxl=0:|<%=currentUser.getPoints()%>&chdls=0000CC,14&chxr=1,<%=calculatePoints.calculateGraphBounds("bottom")%>,
					<%=calculatePoints.calculateGraphBounds("top")%>,<%=(calculatePoints.calculateGraphBounds("top")-calculatePoints.calculateGraphBounds("bottom"))/2%>&amp">
				</center>
				</div>
		</div>
		
		</div>		
	</div><!-- /content -->
	<div data-role="footer">
		<h4>&copy; 2011 - StAPP</h4>
	</div><!-- /footer -->
</div><!-- /page -->


</body>
</html>